package dbobjects;

import dbreflection.tablemanagement.DOTable;
import dbreflection.tablemanagement.DOField;
import dbreflection.tablemanagement.DatabaseObject;

/**
 * User: [J0k3r]
 * Date: 16.01.2009
 * Time: 16:19:41
 */
@DOTable(table = "db_journal_param", pk = "id")
public class DBJournalParam extends DatabaseObject
{
    @DOField(column = "id")
    private Integer id;
    @DOField(column = "param_string")
    private String paramString;
    @DOField(column = "param_view_string")
    private String paramViewString;
    @DOField(column = "param_name", orderBy = true)
    private String name;
    @DOField(column = "journal_id")
    private Integer journlId;

    public DBJournalParam() {
        this.id = UNASSIGNEDINT;
        this.name = UNASSIGNEDSTRING;
        this.paramString = UNASSIGNEDSTRING;
        this.paramViewString = UNASSIGNEDSTRING;
        this.journlId = UNASSIGNEDINT;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getParamString() {
        return paramString;
    }

    public void setParamString(String paramString) {
        this.paramString = paramString;
    }

    public String getParamViewString() {
        return paramViewString;
    }

    public void setParamViewString(String paramViewString) {
        this.paramViewString = paramViewString;
    }

    public Integer getJournlId() {
        return journlId;
    }

    public void setJournlId(Integer journlId) {
        this.journlId = journlId;
    }
}
